home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1998 October
/
Macworld (1998-10).dmg
/
Updaters
/
Curvus Pro
/
Plug-ins
/
Plug-ins factory
/
Plug-In Infos
< prev
next >
Wrap
Text File
|
1997-12-29
|
1KB
|
29 lines
What is a plug-in for Curvus Pro?
It is a code resource which defines a function that can be called by Curvus Pro.
It is useful to create functions too complex to be defined in Curvus Pro itself.
How to create a plug-in for Curvus Pro?
• Open the project "GenericPlugIn68K.µ" (for 680x0) or "GenericPlugInPPC.µ" (for PowerPC)
• Edit the code in "GenericPlugIn.p"
• Compile
• Open the plug-in (e.g. "Generic Plug-in 68K") with ResEdit
• Modify the resource "INFO" according to your function
What must contain a plug-in for Curvus Pro?
• Resource "CODE", a code resource with entry of type "PROCEDURE main(params:Handle)"
- ID=128 code for 680x0
- ID=129 code for PowerPC
A "FAT" plug-in must contain resources with both ID's.
• Resource "INFO" ID=128, some information about the function
- "Number of parameters" 0 for constant, otherwise clear enough!
- "Complex numbers" True if the function handles complex numbers
- "Name" Name of the function called in Curvus Pro
• Resource "ALERT" ID=128, an alert box containing credits and informations (such as the syntax)
All questions or remarks to:
arizona@pobox.com